package com.unismc.charge.collector.controller;

import com.unismc.transport.common.UviewMqttClient;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * @author: Forward Seen
 * @description:
 * @createTime: 2024/4/25 17:07
 * @since: 1.0
 */
@Slf4j
@RestController
@RequestMapping("/uviewcloud")
public class TestUviewCloudController {
    @Resource
    private UviewMqttClient client;

    @GetMapping("createDevice")
    public void testCreateDevice(String name, String type) {
        client.createDevice(name, type);
    }

}
